import 'package:flutter/material.dart';

void main() {
  
 runApp(MaterialApp(
    home:  MyHome('123','我是内容哦') ,
  ));
}


// StatelessWidget 无状态组件
class MyHome extends StatelessWidget{

  MyHome(this.title,this.content);

  String title='moren';

  String content='content';

  @override
  Widget build(BuildContext context) {
    // TODO: implement build
   return Scaffold(
      // 1.1 导航
      appBar: AppBar(
        backgroundColor: Colors.orange,
        title: Text(title),
      ),
      // 1.2 主体部分
      // 帮我调整 Text 的代码 实现 超出部分 ...
      body: Center(
        child: Container(
          width: 300,
          height: 400,
          // child: Image.network('https://yanxuan-item.nosdn.127.net/e529b6ab111ade9da9314867f98d360f.png'),
          child: Image.asset('open_eyes.png'),
        ),
      ))
      ;
  }
  
}

class MyContainer extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Container(
        width: 100,
        height: 200,
        // color: Colors.pink,
        // padding: EdgeInsets.all(30),
        padding: EdgeInsets.only(left: 40,top:60),
        margin: EdgeInsets.all(50),
        child: Text('么么哒'),
        decoration: BoxDecoration(
          borderRadius: BorderRadius.circular(10),
          color: Colors.orange,
          border: Border.all(width: 10,color: Colors.pink)
        )
      );
  }
}
